{% extends "base.html" %}
{% block pagetitle %}{{MSG_CP_CREATE_PROFILE}}{% endblock %}

{% block content %}

{% ifequal type 'donor' %}
  <h2>{{MSG_CP_DONOR_PROFILE}}:</h2>
<div class=art-box>
  <form class="art-form-left" action="/createprofile" method="post">
    <table>
    <tr><td>{{MSG_CP_NAME}}:</td><td><input type="text" name='name'/></td></tr>
    <tr><td>{{MSG_CP_DESCRIPTION}}:</td><td><textarea name="description"></textarea></td></tr>
    <tr><td>{{MSG_CP_EMAIL}}:</td><td><input name="email"   type='text'/> </td></tr>
    <tr><td>{{MSG_CP_PHONE}}:</td><td><input name="phone"   type='text'/></td></tr>
    <tr><td>{{MSG_CP_ADDRESS}}:</td><td><input name="address" type='text'/></td></tr>
    <tr><td>{{MSG_CP_WEBSITE}}:</td><td><input name="website" type='text'/></td></tr>
    </table>
    <input type="hidden" name="type" value='donor' />
    <input type="hidden" name="post_action" value="create"</input>
    <input type="submit" value="Submit" />
  </form>
</div>
{% endifequal %}


{% ifequal type 'manufacturer' %}
<h2>{{MSG_CP_MANUFACTURER_PROFILE}}:</h2>
<div class=art-box>
  <form class="art-form-left" action="/createprofile" method="post">
    <table>
    <tr><td>{{MSG_CP_NAME}}:</td><td><input type="text" name='name'/></td></tr>
    <tr><td>{{MSG_CP_DESCRIPTION}}:</td><td><textarea name="description"></textarea></td></tr>
    <tr><td>{{MSG_CP_EMAIL}}:<td><td><input name="email"   type='text'/> </td></tr>
    <tr><td>{{MSG_CP_PHONE}}:</td><td><input name="phone"   type='text'/></td></tr>
    <tr><td>{{MSG_CP_ADDRESS}}:</td><td><input name="address" type='text'/></td></tr>
    <tr><td>{{MSG_CP_WEBSITE}}:</td><td><input name="website" type='text'/></td></tr>
    </table>
    <input type="hidden" name="type" value='manufacturer' />
    <input type="hidden" name="post_action" value="create"</input>
    <input type="submit" value="Submit" />
  </form>
</div>
{% endifequal %}


{% endblock %}
